package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.snowgarden.SnowGardenUserData;
import com.yanqu.road.entity.activity.snowgarden.config.*;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class SnowGardenBusiness {
    // 配置
    public static Map<Integer, SnowGardenCombConfig> getSnowGardenCombConfig(int activityId){
        return DaoHelper.getSnowGardenCombConfigDaoImpl().getSnowGardenCombConfig(activityId);
    }

    public static Map<Integer, SnowGardenMapConfig> getSnowGardenMapConfig(int activityId){
        return DaoHelper.getSnowGardenMapConfigDaoImpl().getSnowGardenMapConfig(activityId);
    }

    public static Map<Integer, SnowGardenDollConfig> getSnowGardenDollConfig(int activityId){
        return DaoHelper.getSnowGardenDollConfigDaoImpl().getSnowGardenMapConfig(activityId);
    }

    public static Map<Integer, SnowGardenStatueConfig> getSnowGardenStatueConfig(int activityId){
        return DaoHelper.getSnowGardenStatueConfigDaoImpl().getSnowGardenStatueConfig(activityId);
    }

    public static Map<Integer, SnowGardenVisitorConfig> getSnowGardenVisitorConfig(int activityId){
        return DaoHelper.getSnowGardenVisitorConfigDaoImpl().getSnowGardenMapConfig(activityId);
    }

    public static Map<Integer, SnowGardenLevelConfig> getSnowGardenLevelConfig(int activityId){
        return DaoHelper.getSnowGardenLevelConfigDaoImpl().getSnowGardenLevelConfig(activityId);
    }

    public static Map<Integer, SnowGardenShowConfig> getSnowGardenShowConfig(int activityId){
        return DaoHelper.getSnowGardenShowConfigDaoImpl().getSnowGardenShowConfig(activityId);
    }

    // 玩家数据
    public static SnowGardenUserData getSnowGardenUserData(int activityId, long userId) {
        return DaoHelper.getSnowGardenUserDataDaoImpl().getSnowGardenUserData(activityId, userId);
    }

    public static boolean updateSnowGardenUserData(SnowGardenUserData data) {
        return DaoHelper.getSnowGardenUserDataDaoImpl().update(data);
    }

    public static boolean addSnowGardenUserData(SnowGardenUserData data) {
        return DaoHelper.getSnowGardenUserDataDaoImpl().add(data);
    }
}
